Getting a distinct list of values from a list of dicts